﻿namespace MicroCloud
{
    /// <summary>
    /// 表示查询操作的前台操作码
    /// </summary>
    [AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
    public class OperateCodeAttribute : Attribute
    {
        /// <summary>
        /// 初始化一个 <see cref="OperateCodeAttribute"/> 类型的新实例
        /// </summary>
        /// <param name="code"></param>
        public OperateCodeAttribute(string code)
        {
            Code = code;
        }

        #region 属性
        /// <summary>
        /// 获取 操作代码
        /// </summary>
        public string Code { get; private set; }
        
        #endregion



    }

}
